var common = require('../common');
var store = common.store;
var getFile = common.getFile;
var data = {
  "result": "success",
  "messages": [],
  "fieldErrors": {},
  "errors": [],
  "data": {

  }
};
var data1 = {
  "result": "success",
  "messages": [],
  "fieldErrors": {},
  "errors": [],
  "data": false
};
module.exports = {
  // mock 请求
  "get /admin/sysUser/list.do": function(req, res) {
    res.send({
      "result": "success",
      "messages": [],
      "fieldErrors": {},
      "errors": [],
      "data": {
        totalCount: 3, //总页数
        pageNo: 1, //当前页
        pageSize: 10, //每页显示的条数,
        listData: [{ //列表数据
          id:1,
          name:"用户名",
                level:"Level 1",
                status:"00",//00:冻结 10:正常
                docCreateTime:"2014-07-01 12:30:30",
                vitNum:"99"//活跃度

        }, { //列表数据
          id:2,
          name:"用户名",
                level:"Level 1",
                status:"10",//00:冻结 10:正常
                docCreateTime:"2014-07-01 12:30:30",
                vitNum:"99"//活跃度

        }, { //列表数据
          id:3,
          name:"用户名",
                level:"Level 1",
                status:"00",//00:冻结 10:正常
                docCreateTime:"2014-07-01 12:30:30",
                vitNum:"99"//活跃度

        }]
      }
    });
  },
  "get /admin/sysUser/view.do": function(req, res) {
    res.send({
      "result": "success",
      "messages": [],
      "fieldErrors": {},
      "errors": [],
      "data": {
        name:"rambo@1510book.cn",//邮箱为注册名
            nickName:"麦兜哥哥",
            realName:"真实姓名",
            company:"就职公司",
            link:"个人网页",
            oneWord:"一句话介绍",
            introduce:"个人介绍",
            forWork:"求职欲望",
            cateIds:"ID001_JAVA:ID002_PHP",//特殊技能
            edu:"教育经历",
            project:"项目经历"
      }
    });
  },
  "post /admin/sysUser/updateStatus.do": function(req, res) {
    res.send(data);
  },
  "post /admin/sysUser/rePw.do": function(req, res) {
    res.send(data);
  }


};
